Programming Quantum Computers by Eric R. Johnston

Programming Quantum Computers by Eric R. Johnston

Author:Eric R. Johnston
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2019-07-09T16:00:00+00:00


Figure 9-1. Q8.6 fixed-point encoding of the number 3.640625, which in binary reads 11101001

In the preceding example we managed to encode the chosen number precisely in fixed point because 3.640625 (how convenient!). Of course, we might not always get so lucky. Whereas increasing the number of bits in the integer side of a fixed-point register increases the range of integer values it can encode, increasing the number of bits in the fractional side increases the accuracy with which it can represent the fractional component of a number. The more qubits we have in the fractional part, the more chance there is that some combination of can accurately represent a given real number.

Although in the coming chapters we’ll only point out when we use fixed-point encodings in passing, they’re critical to being able to experiment with real data in small QPU registers and so well worth being aware of. When dealing with the various encodings that we have introduced, we must be diligent in keeping track of which particular encoding we’re using for data in a given QPU register, so that we interpret the state of its qubits correctly.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.